<include file='Admin/Tpl/Public/nav.html' />
<div class="page-content">
    <div class="container-fluid">
    	<br/>
        <ol class="breadcrumb default square rsaquo sm">
            <li><a href="index.html"><i class="fa fa-home"></i></a></li>
            <li><a href="#fakelink">Teamin</a></li>
            <li class="active">新闻管理</li>
        </ol>

        <div class="the-box no-border">
            <div class="table-responsive div1 div_search">
                <table class="table table-th-block table-hover">
                    <thead>
                    <tr style="text-align:center">
                        <td style="text-align:center;width:60px">编号</td>
                        <td style="text-align:center">管理员名称</td>
                        <td style="text-align:center;width:180px">管理员权限</td>
                        <td style="text-align:center;width:100px">创建时间</td>
<!--                        <td style="text-align:center;width:80px">当前状态</td>
-->                        <td style="text-align:center;width:180px">操作</td>
                      </tr>
                    </thead>
                    <tbody>
                    <tbody>
                    <volist name="rs.data" id="val"> 
                      <tr>                    
                        <td style='text-align:center;vertical-align:middle'>{$val.admin_id}</td>
                        <td style='text-align:center;vertical-align:middle'>{$val.admin_name}</td>
                        <td style='text-align:center;vertical-align:middle'>
                        	<if condition="$val.admin_rights_id eq 1">
                            	超级管理员
                            <elseif condition="$val.admin_rights_id eq 2" />
                            	一般管理员
                            </if>
                        </td>
                        <td style='text-align:center;vertical-align:middle'>{$val.time_insert}</td>
                        <td style='text-align:center;vertical-align:middle''>                            
                            <a href='javascript:void(0)' onclick="to_upt({$val.news_id})" title='Edit'>修改</a>&nbsp;|&nbsp;
                            <a href='javascript:void(0)' onclick='del_news({$val.news_id})' title='Delete'>删除</a>
                        </td>
                      </tr>
                    </volist>
                    </tbody>
                </table>
                <ul class="pagination success">{$rs.show}</ul>
            </div>
            <div class="table-responsive" id="hl"></div>
        </div>
    </div>
</div>
</div>


</body>
</html>
<script src="__PUBLIC__/assets/js/jquery.min.js"></script>
<script type="text/javascript">
function del_news(a){
	if(confirm("确认删除?")){
		$.get('__URL__/del_news?news_id='+a,'',function(){window.location='__SELF__';},'json');	
	}
}
function to_upt(a){
	window.location='__URL__/to_update?news_id='+a;
}
function for_display(news_id,news_dispaly){
	$.get('__URL__/news_display?news_display='+news_dispaly+'&news_id='+news_id,'',function(){window.location='__SELF__'});	
}
function open_suggest(a){
	$.jBox.open("iframe:__URL__/check_suggest?news_id="+a, "查看建议", 900, 500, { buttons: { '关闭': true},closed: function () { window.location='__SELF__' }});
}
</script>
